use xiaohao_ar::sort_ar::*;

// 1.
#[test]
fn insert_sort_test() {
    let mut arr = vec![5, 4, 3, 2, 1];
    insert_sort(&mut arr);
    assert_eq!(vec![1, 2, 3, 4, 5], arr);
}
// 1.1
#[test]
fn sort_array_by_parity_test() {
    let mut arr = vec![3, 1, 2, 4];
    assert_eq!(vec![2, 4, 3, 1], sort_array_by_parity(&mut arr));
}
